package defaulPackage;
public class Video extends File {
	public String durantion;

	public Video(String name, int date, String duration) {
		super(name, date);
		this.durantion = duration;
	}
	
	public String getDurantion() {
		return durantion;
	}
	
	@Override
	public boolean match(File file) {
		if (!super.match(file)) return false;
		if (!(file instanceof Video)) return false;
		if (!durantion.equals(((Video) file).getDurantion())) return false;
		return true;
	}

}
